const facDao = require('../dao/facDao');

module.exports.find = async function (searchObj, paging) {
    return await facDao.find(searchObj, paging);
}

module.exports.findAll = async function () {
    return await facDao.findAll();
}

module.exports.findFacAll = async function (filmId, cinemaId) {
    return await facDao.findFacAll(filmId, cinemaId);
}

module.exports.insert = async function (data) {
    return await facDao.insert(data);
}

module.exports.delete = async function (id) {
    return await facDao.delete(id);
}

module.exports.findById = async function (id) {
    return await facDao.findById(id);
}

module.exports.update = async function (id, data) {
    return await facDao.update(id, data);
}